#define _CRT_SECURE_NO_WARNINGS 1
#include"BinaryTree.h"

int main() {
	BTNode* node1 = BuyNode(1);
	BTNode* node2 = BuyNode(2);
	BTNode* node3 = BuyNode(3);
	BTNode* node4 = BuyNode(4);
	BTNode* node5 = BuyNode(5);
	BTNode* node6 = BuyNode(6);
	BTNode* node7 = BuyNode(7);
	BTNode* node8 = BuyNode(8);
	node1->Right = node3;
	node1->Left = node2;
	node2->Left = node4;
	node2->Right = node5;
	node3->Left = node6;
	node3->Right = node7;
	node4->Left = node8;
	postOrder(node1);
	printf("\n");
	inOrder(node1);
	printf("\n");
	preOrder(node1);
	printf("\n");
	int size = BinaryTreeSize(node1);
	printf("size:%d ", size); 
	printf("\n");
	printf("size:%d ", size);
	printf("\n");
	int emptysize = BinaryTreeEmptySize(node1);
	printf("empty:%d", emptysize);
	printf("\n");
	printf("empty:%d", emptysize);
	printf("\n");
	int leafsize = BinaryTreeLeafSize(node1);
	printf("leaf:%d", leafsize);
	printf("\n");
	leverOrder(node1);
}
